from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1215209449.6755581
_template_filename='/Users/chrismoos/Documents/Code/openlbs/openlbs-server/openlbsserver/templates/index.mak'
_template_uri='/index.mak'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
_exports = ['content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'base.mak', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        # SOURCE LINE 2
        context.write(u'\n\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


def render_content(context):
    context.caller_stack.push_frame()
    try:
        c = context.get('c', UNDEFINED)
        _ = context.get('_', UNDEFINED)
        # SOURCE LINE 4
        context.write(u'\n<p>This server implements the <a href="http://openlbs.tech9computers.com/reference/http/0.1">OpenLBS HTTP 0.1</a> specifications.</p>\n<form action="/login" method="POST">\n<table>\n\n')
        # SOURCE LINE 9
        if c.error:
            # SOURCE LINE 10
            context.write(u'<b>')
            context.write(unicode(_('The username or password you entered is invalid.')))
            context.write(u'</b>\n')
        # SOURCE LINE 12
        context.write(u'<tr><td>')
        context.write(unicode(_('Username')))
        context.write(u':</td><td><input type="text" name="username"/></td></tr>\n<tr><td>')
        # SOURCE LINE 13
        context.write(unicode(_('Password')))
        context.write(u':</td><td><input type="password" name="password"/></td></tr>\n</table>\n<input type="submit" value="')
        # SOURCE LINE 15
        context.write(unicode(_('Login')))
        context.write(u'"/>\n</form>\n<p>')
        # SOURCE LINE 17
        context.write(unicode(_("Don't have an account?")))
        context.write(u' <a href="/register">')
        context.write(unicode(_('Register')))
        context.write(u'</a></p>\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


